package com.dejiao.demo;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Germmy on 2018/10/2.
 */
@RestController
@EnableAutoConfiguration
public class DemoController {


    @RequestMapping("/sayHello/{sbname}")
    public  String sayHello(@PathVariable String sbname){
            return  "Hi:"+sbname;
    }

}
